package com.test.travelinformation;


import android.app.Application;
import android.os.StrictMode;

import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobConfig;


public class BaseApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        BmobConfig config =new BmobConfig.Builder(this)
		//设置appkey
		.setApplicationId("c9463668bd5d5ad0f84d42e13f744e16")
		//请求超时时间（单位为秒）：默认15s
		.setConnectTimeout(30)
		//文件分片上传时每片的大小（单位字节），默认512*1024
		.setUploadBlockSize(500*1024)
		//文件的过期时间(单位为秒)：默认1800s
		.setFileExpiration(5500)
		.build();
		Bmob.initialize(config);

//        Bmob.initialize(this,"c9463668bd5d5ad0f84d42e13f744e16");
//        Bmob.resetDomain("http://open-vip.bmob.cn/8/");
//		StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build());
//		StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build());

    }
}
